# CMake 最低版本号要求
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)

# 项目信息
project(recipe-01
        VERSION 1.2.3
        DESCRIPTION "01-recipe"
        LANGUAGES CXX)

# 指定生成目标
add_executable(hello-cmake recipe01.cpp)

message(STATUS ${PROJECT_NAME})

message(STATUS ${PROJECT_SOURCE_DIR})
message(STATUS ${recipe-01_SOURCE_DIR})

message(STATUS ${PROJECT_BINARY_DIR})
message(STATUS ${recipe-01_BINARY_DIR})

message(STATUS ${PROJECT_VERSION})
message(STATUS ${PROJECT_VERSION_MAJOR})
message(STATUS ${PROJECT_VERSION_MINOR})
message(STATUS ${PROJECT_VERSION_PATCH})
message(STATUS ${PROJECT_VERSION_TWEAK})
message(STATUS ${PROJECT_DESCRIPTION})